package com.example.juyixia;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class Activity_chatActivity extends Activity {
	private Button bback;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_chat);
		TextView currentfriend= (TextView) findViewById(R.id.currentfriend);
        Intent intent=getIntent();
        Bundle bundle=intent.getExtras();
        if (bundle!=null){
             
                    
                currentfriend.setText(bundle.get("name").toString());       
        }
      
		
		
		
		
		
		bback = (Button)findViewById(R.id.mess_back);
        bback.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
	}
}
